﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="demojQueryValidation.aspx.cs" Inherits="demojQueryValidation" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="http://code.jquery.com/jquery-1.6.2.min.js" type="text/javascript"></script>
    <script src="jquery.validate.js" type="text/javascript"></script>
    <script type="text/javascript">
      $(function() {
      $("#form1").validate();
      });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="aaa">
      <asp:TextBox ID="TextBox1" CssClass="required" runat="server"></asp:TextBox>
      <asp:Button ID="Button1" runat="server" Text="Button" /> 
    </div>
    
    <div>
      <asp:TextBox ID="TextBox2" CssClass="required" runat="server"></asp:TextBox>
      <asp:Button ID="Button2" runat="server" Text="Button" /> 
    </div>
    
    </form>
</body>
</html>
